package com.xgkj.diyiketang.comparator;

import android.util.Log;

import com.xgkj.diyiketang.data.VideoInfo;
import com.xgkj.diyiketang.util.TimeUtil;
import java.text.ParseException;
import java.util.Comparator;

public class VideoComparator implements Comparator<VideoInfo> {


    @Override
    public int compare(VideoInfo o1, VideoInfo o2) {
            if (Long.valueOf(TimeUtil.getTime(o1.getCreateDate()))> Long.valueOf(TimeUtil.getTime(o2.getCreateDate()))) {
                return -1;
            } else {
                return 1;
            }
    }
}
